package com.training1.core.entity;



import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.apache.ibatis.type.Alias;

import com.training1.core.common.entity.DataEntity;


@Alias("ContractInfo")
public class ContractInfoEntity extends DataEntity{
	
	/**
	 * 合同执行详情
	 */
	private static final long serialVersionUID = 5608799216669341214L;
	
	private BigDecimal principai;//合同本金
	
	private BigDecimal serFee;//服务费率
	
	private Date loanDate;//合同生效日期

	private String  loanDateStr;
	
	private int cyc;//合同期数
	
	private BigDecimal totalBaseAmount;//累计基础服务费
	
	private BigDecimal totalAddAmount;//累计增值服务费
	
	private BigDecimal totalDelayAmount;//累计延迟服务费
	
	private BigDecimal totalReceiveAmount;//累计收款
	
	private BigDecimal forceAmount;//强制结束收费
	
	private BigDecimal profit;//利润
	
	private int receiveCyc;//收款期数
	
	private Date receiveDate;//收款日期
	
	private String receiveDateStr;
	
	private BigDecimal receiveAmount;//收款金额


	public Date getLoanDate() {
		return loanDate;
	}

	public void setLoanDate(Date loanDate) {
		this.loanDate = loanDate;
		if(null != loanDate){
			SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd");
			this.setLoanDateStr(sf.format(loanDate));
		}
	}

	public int getCyc() {
		return cyc;
	}

	public void setCyc(int cyc) {
		this.cyc = cyc;
	}


	public int getReceiveCyc() {
		return receiveCyc;
	}

	public void setReceiveCyc(int receiveCyc) {
		this.receiveCyc = receiveCyc;
	}

	public Date getReceiveDate() {
		return receiveDate;
	}

	public void setReceiveDate(Date receiveDate) {
		this.receiveDate = receiveDate;
		if(null != receiveDate){
			SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd");
			this.setReceiveDateStr(sf.format(receiveDate));
		}
	}

	
	public String getLoanDateStr() {
		return loanDateStr;
	}

	public void setLoanDateStr(String loanDateStr) {
		this.loanDateStr = loanDateStr;
	}

	public String getReceiveDateStr() {
		return receiveDateStr;
	}

	public void setReceiveDateStr(String receiveDateStr) {
		this.receiveDateStr = receiveDateStr;
	}

	public BigDecimal getPrincipai() {
		return principai;
	}

	public void setPrincipai(BigDecimal principai) {
		this.principai = principai;
	}

	public BigDecimal getSerFee() {
		return serFee;
	}

	public void setSerFee(BigDecimal serFee) {
		this.serFee = serFee;
	}

	public BigDecimal getTotalBaseAmount() {
		return totalBaseAmount;
	}

	public void setTotalBaseAmount(BigDecimal totalBaseAmount) {
		this.totalBaseAmount = totalBaseAmount;
	}

	public BigDecimal getTotalAddAmount() {
		return totalAddAmount;
	}

	public void setTotalAddAmount(BigDecimal totalAddAmount) {
		this.totalAddAmount = totalAddAmount;
	}

	public BigDecimal getTotalDelayAmount() {
		return totalDelayAmount;
	}

	public void setTotalDelayAmount(BigDecimal totalDelayAmount) {
		this.totalDelayAmount = totalDelayAmount;
	}

	public BigDecimal getTotalReceiveAmount() {
		return totalReceiveAmount;
	}

	public void setTotalReceiveAmount(BigDecimal totalReceiveAmount) {
		this.totalReceiveAmount = totalReceiveAmount;
	}

	public BigDecimal getForceAmount() {
		return forceAmount;
	}

	public void setForceAmount(BigDecimal forceAmount) {
		this.forceAmount = forceAmount;
	}

	public BigDecimal getProfit() {
		return profit;
	}

	public void setProfit(BigDecimal profit) {
		this.profit = profit;
	}

	public BigDecimal getReceiveAmount() {
		return receiveAmount;
	}

	public void setReceiveAmount(BigDecimal receiveAmount) {
		this.receiveAmount = receiveAmount;
	}
	
	
}
